package com.project.service;

import com.project.entity.qo.OrderQo;
import com.project.entity.vo.OrderVo;
import com.project.result.ResponseResult;
import com.project.result.ResultCode;

import java.util.List;

/**
 * @author chen
 * @date 2022/3/29
 */
@SuppressWarnings("all")
public interface OrderService {
    /**
     * 添加订单
     * @param orderQo
     * @return
     */
    ResponseResult<ResultCode> addOrder(OrderQo orderQo);

    /**
     * 查询所有订单
     * @return
     */
    ResponseResult<List<OrderVo>> selectOrder();

    /**
     *  根据条件查询
     * @param orderQo
     * @return
     */
    ResponseResult<List<OrderVo>> selectByOrder(OrderQo orderQo);

    /**
     * 分页查询
     * @param current
     * @return
     */
    ResponseResult<List<OrderVo>> selectOrderPage(Integer current);
}
